home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / scrollbars.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2006-07-29  |  8.4 KB  |  265 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== xulscrollbars.css ==============================================
  40.   == Styles used by XUL scrollbar-related elements.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  45.  
  46. /* ::::: scrollbar ::::: */
  47.  
  48. scrollbar {
  49.   -moz-appearance: scrollbartrack-horizontal;
  50.   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  51.   cursor: default;
  52.   background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  53. }
  54.  
  55. scrollbar[orient="vertical"] 
  56. {
  57.    -moz-appearance: scrollbartrack-vertical;
  58. }
  59.  
  60. /* ::::: borders for thumb and buttons ::::: */
  61.  
  62. thumb,
  63. scrollbarbutton {
  64.   border: 2px solid;
  65.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  66.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  67.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  68.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  69.   background-color: -moz-Dialog;
  70. }
  71.  
  72. /* ::::: thumb (horizontal) ::::: */
  73.  
  74. thumb {
  75.   -moz-appearance: scrollbarthumb-vertical;
  76.   min-height: 8px;
  77. }
  78.  
  79. thumb[orient="horizontal"] {
  80.   -moz-appearance: scrollbarthumb-horizontal;
  81.   min-width: 8px;
  82. }
  83.  
  84. thumb > gripper {
  85.   -moz-appearance: scrollbargripper-vertical;
  86. }
  87.  
  88. thumb[orient="horizontal"] > gripper {
  89.   -moz-appearance: scrollbargripper-horizontal;
  90. }
  91.  
  92. /* ::::: scrollbar button ::::: */
  93.  
  94. scrollbarbutton {
  95.   background: -moz-Dialog no-repeat 0px 1px;
  96.   min-width: 16px;
  97.   min-height: 16px;
  98. }
  99.  
  100. scrollbarbutton:hover:active, scrollbarbutton[active="true"] {
  101.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  102.   -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  103.   -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  104.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  105.   background-position: 1px 2px;
  106. }
  107.  
  108. /* ::::: square at the corner of two scrollbars ::::: */
  109.  
  110. scrollcorner { 
  111.   /* XXX -moz-appearance: scrollcorner; */
  112.   -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
  113.   width: 16px;
  114.   cursor: default;
  115.   background-color: -moz-Dialog;
  116. }
  117.  
  118. /* ..... increment .... */
  119.  
  120. scrollbarbutton[type="increment"] {
  121.   -moz-appearance: scrollbarbutton-right;
  122.   background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  123. }
  124.  
  125. scrollbarbutton[type="increment"][disabled="true"] {
  126.   background-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif")
  127. }
  128.  
  129. scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  130.   -moz-appearance: scrollbarbutton-down;
  131.   background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  132. }
  133.  
  134. scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
  135.   background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif")
  136. }
  137.  
  138. /* ..... decrement .... */
  139.  
  140. scrollbarbutton[type="decrement"] {
  141.   -moz-appearance: scrollbarbutton-left;
  142.    background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  143. }
  144.  
  145. scrollbarbutton[type="decrement"][disabled="true"] {
  146.    background-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif")
  147. }
  148.  
  149. scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  150.   -moz-appearance: scrollbarbutton-up;
  151.    background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  152. }
  153.  
  154. scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
  155.    background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif")
  156. }
  157.  
  158. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  159. /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
  160. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  161. @media print {
  162.   /* ::::: scrollbar ::::: */
  163.  
  164.   html|div scrollbar {
  165.     -moz-appearance: scrollbartrack-horizontal;
  166.     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  167.     cursor: default;
  168.     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  169.   }
  170.  
  171.   html|div scrollbar[orient="vertical"] 
  172.   {
  173.      -moz-appearance: scrollbartrack-vertical;
  174.   }
  175.  
  176.   /* ::::: borders for thumb and buttons ::::: */
  177.  
  178.   html|div thumb,
  179.   html|div scrollbarbutton {
  180.     border: 2px solid;
  181.     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  182.     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  183.     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  184.     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  185.     background-color: -moz-Dialog;
  186.   }
  187.  
  188.   /* ::::: thumb (horizontal) ::::: */
  189.  
  190.   html|div thumb {
  191.     -moz-appearance: scrollbarthumb-vertical;
  192.     min-height: 8px;
  193.   }
  194.  
  195.   html|div thumb[orient="horizontal"] {
  196.     -moz-appearance: scrollbarthumb-horizontal;
  197.     min-width: 8px;
  198.   }
  199.  
  200.   html|div thumb > gripper {
  201.     -moz-appearance: scrollbargripper-vertical;
  202.   }
  203.  
  204.   html|div thumb[orient="horizontal"] > gripper {
  205.     -moz-appearance: scrollbargripper-horizontal;
  206.   }
  207.  
  208.   /* ::::: scrollbar button ::::: */
  209.  
  210.   html|div scrollbarbutton {
  211.     background: -moz-Dialog no-repeat 0px 1px;
  212.     min-width: 16px;
  213.     min-height: 16px;
  214.   }
  215.  
  216.   html|div scrollbarbutton:hover:active, html|div scrollbarbutton[active="true"] {
  217.     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  218.     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  219.     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  220.     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  221.     background-position: 1px 2px;
  222.   }
  223.  
  224.   /* ..... increment .... */
  225.  
  226.   html|div scrollbarbutton[type="increment"] {
  227.     -moz-appearance: scrollbarbutton-right;
  228.     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  229.   }
  230.  
  231.   html|div scrollbarbutton[type="increment"][disabled="true"] {
  232.     background-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif")
  233.   }
  234.  
  235.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  236.     -moz-appearance: scrollbarbutton-down;
  237.     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  238.   }
  239.  
  240.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"] {
  241.     background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif")
  242.   }
  243.  
  244.   /* ..... decrement .... */
  245.  
  246.   html|div scrollbarbutton[type="decrement"] {
  247.     -moz-appearance: scrollbarbutton-left;
  248.      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  249.   }
  250.  
  251.   html|div scrollbarbutton[type="decrement"][disabled="true"] {
  252.      background-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif")
  253.   }
  254.  
  255.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  256.     -moz-appearance: scrollbarbutton-up;
  257.      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  258.   }
  259.  
  260.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"] {
  261.      background-image: url("chrome://global/skin/arrow/arrow-up-dis.gif")
  262.   }
  263.  
  264. }
  265.